using UnityEngine;
// [Assembly-CSharp.dll].UnityMainThread
internal class UnityMainThread : MonoBehaviour
{
    // Fields
    internal static UnityMainThread wkr;
    private System.Collections.Generic.Queue<System.Action> jobs;
    
    // Methods
    private void Awake()
    {
        if((UnityEngine.Object.op_Implicit(exists:  mem[536895333])) != false)
        {
                return;
        }
        
        mem2[0] = this;
    }
    private void Update()
    {
        do
        {
            if(1 <= 0)
        {
                return;
        }
        
            Unknown val_1 = this.jobs.Dequeue();
        }
        while(this.jobs != null);
        
        throw new NullReferenceException();
    }
    internal void AddJob(System.Action newJob)
    {
        this.jobs.Enqueue(item:  newJob);
    }
    public UnityMainThread()
    {
        System.Collections.Generic.Queue<System.Object> val_1 = 536903973;
        val_1 = new System.Collections.Generic.Queue<System.Object>();
        this.jobs = val_1;
    }

}
